package com.gzdh.dishrecognition.emu;

public enum DeviceTypeEmus {

    defaultType(0, "默认模式"),
    ali(2, "支付宝"),

    jeBaoAli(3,"捷宝支付宝");

    private int value;

    private String name;

    private DeviceTypeEmus(int v, String name) {
        this.value = v;
        this.name = name;
    }

    // 根据value返回枚举类型,主要在switch中使用
    public static DeviceTypeEmus getByValue(int value) {
        for (DeviceTypeEmus code : values()) {
            if (code.getValue() == value) {
                return code;
            }
        }
        return null;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
